#ifndef BUILDING_H
#define BUILDING_H
#include <QGLWidget>
#include <GL/gl.h>
#include <GL/glu.h>
class XMLParser;
#include <xmlparser.h>


#if WIN32
#pragma comment (lib, "Opengl32.lib")
#pragma comment (lib, "glu32.lib")
#endif
class Building:public QGLWidget
{


public:
    Building(QWidget *parent=0);
    void setCamera(QVector<double> vector);
    void setObject(GLuint object);

protected:
    void initializeGL();
    void resizeGL(int w, int h);
    void paintGL();

private:
    void drawRectangle(GLfloat b, GLfloat h, GLfloat d);
    double camPosx ,camPosy ,camPosz,camViewx,camViewy,camViewz,camUpx, camUpy, camUpz;
    GLuint myobject;

};

#endif // BUILDING_H
